<?php

require_once 'quickstart-loading-re.php';

function minus($min, $sub){
    return $min - $sub;
}

echo re::invokeOp('minus', array('min'=>5, 'sub'=>1)); //outputs 4
echo re::invokeOp('minus', array('sub'=>1, 'min'=>5)); //outputs 4

echo re::invokeOp('str_replace', array('subject'=>'relational studies', 'search'=>'studies', 'replace'=>'etudes')); //outputs "relational etudes"